package com.excel.validators.test.basic;

import com.excel.validators.core.decorative.Validator;
import com.excel.validators.core.extension.annotation.Validated;

@Validated(namespace="test")
public class MyValidator extends Validator<ExcelBean> {

	@Override
	public void validate(ExcelBean values) {
			if (values.getAge() > 12 ) {
					setMessage("weight", "error message");
			}
//			 terminated 表示中止检查
//			terminated();
	}

}
